﻿/************************************\
 *   ___                            *
 *  /                          /    *
 * (___ |  ___  ___       ___ (___  *
 * |    | |   )|___)| / )|___)|   ) *
 * |    | |    |__  |/|/ |__  |__/  *
 *                                  *
 * FireWeb - C# OpenSource Browser  *
\************************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;

namespace FireWeb.Pages
{
    public partial class Source : Form
    {
        string URL;
        public Source(int MainPID, string PipeName, int ID, string _URL)
        {
            InitializeComponent();
            URL = _URL;
            backgroundWorker1.RunWorkerAsync();
        }

        private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            WebClient Web = new WebClient();
            richTextBox1.Text = Web.DownloadString(URL);
        }
    }
}
